# -*- coding: utf-8 -*-
"""
Created on Fri Sep  3 09:37:12 2021

@author: 刘长奇-2019300677
"""

text='One is always on a strange road, watching strange scenery and listening to strange music. Then one day, you will find that the things you try hard to forget are already gone. '
text=text.lower()
text=text.replace(',',' ')
text=text.replace('.',' ')
textlst=text.split(' ')
text1=set(textlst)
text2=list(text1)
num=[1]*len(text2)
for k in range(len(text2)):
    num[k]=0

for i in range(len(text2)):
  
    for j in range(len(textlst)):
        if text2[i]==textlst[j]:
            num[i]=num[i]+1
del text2[0]
del num[0]
for i in range(len(text2)):
    print(text2[i],':',num[i])
